package com.cloudkinto.service.orderback.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import com.cloudkinto.common.utils.StringsUtil;
import lombok.Data;

import java.util.List;

@Data
public class OrderBackDetailExportVo {
    @Excel(name = "所属店铺", needMerge = true)
    private String shopName;
    @Excel(name = "所在仓库", needMerge = true)
    private String storageName;

    /**
     * 原出库订单号
     */
    @Excel(name = "退货单号", width = 60, needMerge = true)
    private String orderOutNumber;

    /**
     * 联系人
     */
    @Excel(name = "联系人", needMerge = true)
    private String contactName;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式", needMerge = true)
    private String telPhone;

    /**
     * 追踪号
     */
    @Excel(name = "追踪号", needMerge = true)
    private String trackNumber;

    /**
     * 快递公司
     */
    @Excel(name = "快递公司", needMerge = true)
    private String trackName;

    @Excel(name = "备注", needMerge = true)
    private String tips;
    /**
     * 操作费
     */
    @Excel(name = "操作费", needMerge = true)
    private Double operateFee;

    /**
     * 手续费
     */
    @Excel(name = "手续费", needMerge = true)
    private Double taxFee;

    /**
     * 运输费
     */
    @Excel(name = "运输费", needMerge = true)
    private Double shipFee;

    @Excel(name = "订单状态", needMerge = true)
    private String status;
    @Excel(name = "处理方式", needMerge = true)
    private String backResult;
    private Long backResultId;

    @Excel(name = "联系人", needMerge = true)
    private String dealDate;
    @Excel(name = "最晚保管日", needMerge = true)
    private String lastDate;
    @Excel(name = "到货日", needMerge = true)
    private String arriveDate;
    @Excel(name = "是否开箱", needMerge = true)
    private String openBox;
    @Excel(name = "是否可售", needMerge = true)
    private String canSale;
    @ExcelCollection(name = "产品信息")
    private List<OrderBackDetailItemExportVo> itemExportVosList;

    public String getOpenBox() {
        return StringsUtil.createI18Message(openBox);
    }

    public String getCanSale() {
        return StringsUtil.createI18Message(canSale);
    }
}
